package cn.wfu.rlrjds.utils;

import cn.wfu.rlrjds.jersey.api.IMUserAPI;
import cn.wfu.rlrjds.jersey.comm.ClientContext;
import cn.wfu.rlrjds.jersey.comm.EasemobRestAPIFactory;

public class EasemobRestAPIFactoryUtils {
	public static EasemobRestAPIFactory factory;

	static {
		factory = ClientContext.getInstance()
				.init(ClientContext.INIT_FROM_PROPERTIES).getAPIFactory();
	}

	public static IMUserAPI getIMUserAPI() {

		return (IMUserAPI) factory
				.newInstance(EasemobRestAPIFactory.USER_CLASS);
	}
}
